//
//  NetTool.h
//  ECBBusinessCamp
//
//  Created by rimi on 16/6/16.
//  Copyright © 2016年 邓毕华. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef enum : NSUInteger {
    GET,
    POST
} requestMethod;
typedef void(^callBackBlock)(id responseObject, NSError * error);

@interface NetTool : AFHTTPSessionManager

+ (instancetype)sharedTool;
- (void)requestMethod:(requestMethod)method loadingMsg:(NSString *)loadingMsg url:(NSString *)urlStr parameters:(id)parameters finish:(callBackBlock)finish;
- (void)requestMethod:(requestMethod)method loadingMsg:(NSString *)loadingMsg url:(NSString *)urlStr otherData:(NSDictionary *)otherDataDic parameters:(id)parameters finish:(callBackBlock)finish;

@end
